import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/shiwu_entity.dart';

ShiwuEntity $ShiwuEntityFromJson(Map<String, dynamic> json) {
  final ShiwuEntity shiwuEntity = ShiwuEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    shiwuEntity.id = id;
  }
  final int? ty = jsonConvert.convert<int>(json['ty']);
  if (ty != null) {
    shiwuEntity.ty = ty;
  }
  final String? title = jsonConvert.convert<String>(json['title']);
  if (title != null) {
    shiwuEntity.title = title;
  }
  final String? content = jsonConvert.convert<String>(json['content']);
  if (content != null) {
    shiwuEntity.content = content;
  }
  final String? img = jsonConvert.convert<String>(json['img']);
  if (img != null) {
    shiwuEntity.img = img;
  }
  final String? tel = jsonConvert.convert<String>(json['tel']);
  if (tel != null) {
    shiwuEntity.tel = tel;
  }
  final String? addr = jsonConvert.convert<String>(json['addr']);
  if (addr != null) {
    shiwuEntity.addr = addr;
  }
  final String? time = jsonConvert.convert<String>(json['time']);
  if (time != null) {
    shiwuEntity.time = time;
  }
  final String? profile = jsonConvert.convert<String>(json['profile']);
  if (profile != null) {
    shiwuEntity.profile = profile;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    shiwuEntity.name = name;
  }
  return shiwuEntity;
}

Map<String, dynamic> $ShiwuEntityToJson(ShiwuEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['ty'] = entity.ty;
  data['content'] = entity.content;
  data['title'] = entity.title;
  data['img'] = entity.img;
  data['tel'] = entity.tel;
  data['addr'] = entity.addr;
  data['time'] = entity.time;
  data['profile'] = entity.profile;
  data['name'] = entity.name;
  return data;
}
